package com.jacky.sso.service.impl;

import com.jacky.sso.entities.SysUser;
import com.jacky.sso.reposities.SysUserRepository;
import com.jacky.sso.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private SysUserRepository sysUserRepository;

    @Override
    public SysUser getByUsername(String username) {
        return sysUserRepository.findByUsername(username);
    }
}
